package com.bank.china.loan.service.impl;

import com.bank.china.loan.entity.EmployeeDO;
import com.bank.china.loan.mapper.EmployeeMapper;
import com.bank.china.loan.service.EmployeeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author christopher
 * @since 2021-09-30
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, EmployeeDO> implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<EmployeeDO> selectEmployeeAll() {
        return employeeMapper.selectEmployeeAll();
    }

    @Override
    public EmployeeDO selectEmployeeById(Integer id) {
        return employeeMapper.selectEmployeeById(id);
    }
}
